package com.cn.wlf.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 登录页面
 */
@Controller
public class LoginController {

	private static Logger logger = LoggerFactory.getLogger(LoginController.class);

	@Value("${evn}")
	private String env;

	/**
	 * 跳转到登陆页面
	 * @return
	 */
	@GetMapping("/login")
	public String login(HttpServletRequest request, HttpServletResponse response){
		logger.info("当前环境:{}",env);
		return "login";
	}


}
